package by.yakusekmaxim.bookgid.webapp.page.home.book;



import org.apache.wicket.MarkupContainer;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.ResourceModel;

import by.yakusekmaxim.bookgid.dataaccess.util.Filter;
import by.yakusekmaxim.bookgid.datamodel.Book;
import by.yakusekmaxim.bookgid.webapp.page.HomeLayout;
import by.yakusekmaxim.bookgid.webapp.page.home.book.BookListPanel;

public class BookPage extends HomeLayout{

	private Filter<Book> filter;
	
	public BookPage(){
		filter = new Filter<Book>();
		filter.setEnabled(false);
		add(new Label("pageNameLabel", getPageTitle()));
		add(new BookListPanel("bookList",filter));
	}
	
	public BookPage(Filter<Book> filter,String string){
		add(new Label("pageNameLabel", string));
		add(new BookListPanel("bookList",filter));
	}
	
	@Override
	protected MarkupContainer addPanel() {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	protected IModel<String> getPageTitle() {
		return new ResourceModel("p.home.linkBookPage");
	}

}
